package com.itheima.admin.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * 频道实体类
 */
@Data
@TableName("ad_channel")
@ApiModel(description = "频道实体")
public class AdChannel {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(notes = "主键id")
    private Integer id;

    @TableField("name")
    @ApiModelProperty(notes = "名称")
    private String name;

    @TableField("description")
    @ApiModelProperty(notes = "描述")
    private String description;

    @TableField("is_default")
    @ApiModelProperty(notes = "是否为默认")
    private Boolean asDefault;

    @TableField("status")
    @ApiModelProperty(notes = "是否启用")
    private Boolean status;

    @TableField("ord")
    @ApiModelProperty(notes = "排序")
    private Integer ord;

    @TableField(value = "created_time",fill = FieldFill.INSERT)
    @ApiModelProperty(notes = "创建时间")
    private LocalDateTime createdTime;
}
